//
//  NetWorkTool.swift
//  WEIBO_SWIFT
//
//  Created by 岳挺 on 15/6/28.
//  Copyright © 2015年 yueting. All rights reserved.
//

import UIKit
import AFNetworking

class NetWorkTool: AFHTTPSessionManager {
    
    private static let instance : AFHTTPSessionManager = {
        let baseURLStr = "https://api.weibo.com/"
        let url = NSURL(string: baseURLStr)
        let tool = AFHTTPSessionManager(baseURL: url)

        tool.responseSerializer.acceptableContentTypes = NSSet(objects: "application/json", "text/json", "text/javascript" , "text/plain") as! Set<String>
        return tool
        }()
    class func sharedNetWorkTool () -> AFHTTPSessionManager{
        return instance
    }
}
